﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="PassChange.aspx.cs" Inherits="DentScan2.WebApp.PassChange" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Смяна на паролата
    </h2>
    <asp:ValidationSummary ID="vsInvoice" runat="server" ValidationGroup="vgUser" CssClass="failureNotification" />
    <table>
        <tr>
            <td>
                <p class="bold">
                    Стара парола
                </p>
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbPassword" TextMode="Password" />
                <asp:RequiredFieldValidator runat="server" ID="rfvPassword" ErrorMessage="Моля, въведете старата парола"
                    ValidationGroup="vgUser" Display="None" ControlToValidate="tbPassword" />
                <asp:CustomValidator runat="server" ID="cvPassword" ErrorMessage="Некоректна стара парола"
                    ValidationGroup="vgUser" Display="None" ControlToValidate="tbPassword" 
                    onservervalidate="cvPassword_ServerValidate" />
            </td>
        </tr>
        <tr>
            <td>
                <p class="bold">
                    Нова парола
                </p>
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbNewPass" TextMode="Password" />
                <asp:RequiredFieldValidator runat="server" ID="rfvNewPass" ErrorMessage="Моля, въведете нова парола"
                    ValidationGroup="vgUser" Display="None" ControlToValidate="tbNewPass" />
            </td>
        </tr>
        <tr>
            <td>
                <p class="bold">
                    Нова парола отново
                </p>
            </td>
            <td>
                <asp:TextBox runat="server" ID="tbNewPass2" TextMode="Password" />
                <asp:RequiredFieldValidator runat="server" ID="rfvNewPass2" ErrorMessage="Моля, въведете нова парола отново"
                    ValidationGroup="vgUser" Display="None" ControlToValidate="tbNewPass2" />
                <asp:CustomValidator runat="server" ID="cvNewPass2" ErrorMessage="Въведените пароли не съвпадат"
                    ValidationGroup="vgUser" Display="None" ControlToValidate="tbNewPass2" 
                    onservervalidate="cvNewPass2_ServerValidate" />
            </td>
        </tr>
    </table>
     <asp:Button runat="server" ID="bSave" Text="Запис" OnClick="bSave_Click" />
</asp:Content>
